home *** CD-ROM | disk | FTP | other *** search
/ AI Game Programming Wisdom / AIGameProgrammingWisdom.iso / SourceCode / 11 Learning / 09 Laramée / WinMain.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2001-12-10  |  512 b   |  26 lines

  1. #include "Globals.h"
  2. #include "Entities.h"
  3. #include "Genetic.h"
  4. #include "Troll.h"
  5. #include <stdlib.h>
  6. #include <iostream.h>
  7. #include <time.h>
  8. #include "Simulation.h"
  9. #include <Windows.h>
  10.  
  11. int main( int argc, char ** argv )
  12. {
  13.     srand( time( 0 ) );
  14.  
  15.     DWORD timer = GetTickCount();
  16.  
  17.     cout << "One moment please..." << endl;
  18.  
  19.     Genetic ga;
  20.     ga.RunEvolution();
  21.  
  22.     cout << "Duration of the experiment: " << (double) ( GetTickCount() - timer ) / 1000.0
  23.          << " seconds." << endl;
  24.  
  25.     return 0;
  26. }